extends PlayStatusInterface

func start():
	owner.show_animiation("charge")

# 物理桢，处理碰撞的逻辑
func run_physics_process(_delta):
	var collision_info = owner.move_and_collision_info()
	if collision_info.get("is_on_floor"):
		if owner.velocity.x == 0:
			manage_node.to_idle()
		else:
			manage_node.to_walk()
		return
	elif  owner.is_collision_wall():
		#墙上时刻
		manage_node.to_onwall()
		return
			
# 逻辑桢，处理画面的逻辑
func run_process(delta):
	# 冲锋过后,做自由落体运动
	if owner.charge_timer.time_left<=0:
		#1. 速度通用处理
		var direction = owner.common_velocity(delta)
			
		# 二段跳
		if owner.can_second_jump():
			pass
		#3. 播放动画
	

